<template>
	<view class="u-flex  u-margin-top-50">
		<view class="u-flex u-row-center box">
			<iconfont :name="`custom-icon-${data.iconName}`" :size="60" :color="data.color"></iconfont>
		</view>
		<view class="box-text u-margin-left-16 ">
			<view class="num">
				<text :style="'color:'+data.color">{{data.num}}</text>
			</view>
			<view class="label ">
				<text>{{data.label}}</text>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		props: {
			data: {
				type: Object,
				default: () => {
					return {
						iconName: '',
						color: '',
						num: '',
						label: ''
					}
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		height: 80rpx;
		width: 80rpx;
		background: #F5F6F7;
		border-radius: 8rpx;

		&-text {
			flex-direction: column;

			>.num {

				font-weight: Bold;
				font-size: 36rpx;
			}

			>.label {
				font-weight: 400;
				font-size: 24rpx;
				color: #98A5B3;
			}
		}
	}
</style>
